<head>
<script type="text/javascript" src="syntaxhighlighter/syntaxhighlighter.js"></script>
<script type="text/javascript">
SyntaxHighlighter.config.clipboardSwf = 'syntaxhighlighter/scripts/clipboard.swf';
SyntaxHighlighter.all();
</script>
</head>


<?php
header('Content-Type:text/html;charset=utf-8');
if($_SERVER['REQUEST_METHOD']=='POST'){
	echo $_POST['myFCKeditor'];
}else{
	include_once("syntaxhighlighter/fckeditor/fckeditor.php");
	$FCKeditor=new FCKeditor('myFCKeditor');
	$FCKeditor->BasePath='./syntaxhighlighter/fckeditor/';
	$FCKeditor->ToolbarSet='Basic';

	echo <<<EOT
<h4>提交之后就能看到显示效果</h4><hr/>
<Form name="frm1" action="{$_SERVER['SCRIPT_NAME']}" method='post'>
EOT;
	//设置它的宽度
	$FCKeditor->Width='500px';
	//		//设置它的高度
	$FCKeditor->Height='300px';
	//				//生成
	$FCKeditor->Create();
	echo <<<EOT1
								<br/>
								<input type="submit" />
								</Form>
EOT1;
}
?>
